#include <iostream>
#include <stdio.h>
#define SIZE 10
using namespace std;
int v[SIZE];
int main()
{
	char c;
	cin >> c;
	while (c != '.')
	{
		if (c >= '0' && c <= '9')
			++v[c - '0'];
		cin >> c;
	}
	for (int i = 0; i < SIZE; ++i)
		if (v[i] == 1)
			cout << i << " ";
	return 0;
}